package com.tjetc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


@TableName("t_activity_flower")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityFlower implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private Integer activityId;

    private LocalDateTime time;

    private String text;

    private Integer state;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Activity activity;


}
